﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using childApp.common;
using childApp.member;
using childApp.tool;

namespace childApp
{
    public partial class MainForm : Form
    {

        public MainForm()
        {
            InitializeComponent();
        }

        private void TSMMember_Click(object sender, EventArgs e)
        {
//            MemberForm form = new MemberForm();

            DataGridForm form = new DataGridForm();
            form.ShowDialog();
            form.Dispose();

        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            LoginForm login = new LoginForm();//声明登录窗口，进行调用  
            login.ShowDialog();
            login.Dispose();
            if (DbCommon.LoginFLAG != "ADMIN")
            {
                Application.Exit();  //防止用户绕过登录进入系统
            }

            this.WindowState = FormWindowState.Maximized; //初始主窗口最大化
        }

        private void TSBCa_Click(object sender, EventArgs e)
        {
            DateToolForm form = new DateToolForm();

            form.ShowDialog();
            form.Dispose();
        }

    
    }
}
